/********************************************
 * 功能说明: 
 * 模块名称: 
 * 系统名称: 
 * 软件版权: Frank
 * 系统版本: 1.0.0
 * 开发人员: Frank
 * 开发时间: 2019/8/13 13:51
 * 审核人员: 
 * 相关文档: 
 * 修改记录: 修改日期 修改人员 修改说明
 *********************************************/
package com.spring.arch.uaa.model;

import com.spring.arch.common.jpa.model.AbstractPersistableModel;
import com.spring.arch.common.jpa.model.AbstractPersistableModel;
import lombok.*;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 资源权限信息
 *
 * @author Frank
 * @version 1.0.0.1
 * @since JDK 1.8
 */
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity
@Table(name = "role_authority")
public class RoleAuthority extends AbstractPersistableModel {

    private static final long serialVersionUID = -1711439108701254564L;

    /**
     * 角色
     */
    @ManyToOne(fetch = FetchType.LAZY)
    private Role role;

    /**
     * 资源权限
     */
    @ManyToOne(fetch = FetchType.LAZY)
    private Authority authority;

}
